package com.cloudlead.shipownerAction;

import com.cloudlead.common.lang.BusinessModule;

/**
 * BusinessModules is a Codegen businsess modules type
 */
public enum BusinessModules implements BusinessModule {
    BaseCD("船东模块",null),
    BaseShipChange("船舶管理",BaseCD),
    BaseVoyageEdit("航次编辑",BaseCD),
    ShipRouteMangement("航线管理",BaseCD),
    BookSpaceOrderManagement("订舱单管理",BaseCD);

    BusinessModules(String label, BusinessModule parent) {
    	this.label = label;
    	this.parent = parent;
    }
    
    private String label;

    private BusinessModule parent;

    public String getName() {
        return this.name();
    }

    public String getLabel() {
        return label;
    }

    public BusinessModule getParent() {
        return parent;
    }

    public String getFullName() {
        return null == this.parent ? this.name() : this.parent.getFullName()+ "-" + this.getName();
    }

    public int getOrdinal() {
        return this.ordinal();
    }

}

